/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/06/27
*/
#ifdef _WIN32

#include "RefBase.h"
#include <Windows.h>

EDUI_NAMESPACE_BEGIN
	
namespace ed_refbase{

int AtomicOps::Increment(int* i) 
{
	return ::InterlockedIncrement(reinterpret_cast<LONG*>(i));
}


int AtomicOps::Decrement(int* i) 
{
	return ::InterlockedDecrement(reinterpret_cast<LONG*>(i));
}


}

EDUI_NAMESPACE_END

#endif